from django.urls import path
from rest_framework_jwt.views import obtain_jwt_token
from main.views import UserInfoViewSet, RoomViewSet


urlpatterns = [
    path('login/', obtain_jwt_token),
    path('user/', UserInfoViewSet.as_view({'get': 'list'})),
    path('logout/', UserInfoViewSet.as_view({'post': 'logout'})),
    path('room/', RoomViewSet.as_view({'get': 'changeRoomStatus'}))
]